package cn.net.dpi.core.api.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;


@Data
@ApiModel(value="PageResponse对象", description="分页返回对象")
public class PageResponse<T> implements Serializable {

    @ApiModelProperty(value = "对应页数据列表")
    private List<T> list;

    @ApiModelProperty(value = "总记录数")
    private Long total;

    public PageResponse(List<T> list, Long total) {
        this.list = list;
        this.total = total;
    }

    public PageResponse() {
    }
}
